Fix warnings in ns*m files: Replace deprecated methods, declare new interfaces.
authorJan D. <jan.h.d@swipnet.se>
Fri, 8 Jul 2011 10:04:23 +0000 (12:04 +0200)
committerJan D. <jan.h.d@swipnet.se>
Fri, 8 Jul 2011 10:04:23 +0000 (12:04 +0200)
commitc078ba0b213c54bb3f45a3d669dbfa37738581a6
tree46bf7d07eb7d3f45f145367fc0511f4578c450a8
parentf1968384ef994f0b4f3d6a9189275ef2696830c2
Fix warnings in ns*m files: Replace deprecated methods, declare new interfaces.

* emacs.c: Declare unexec_init_emacs_zone.

* nsfns.m (check_ns_display_info): Cast to long and use %ld in error
to avoid warning.

* nsimage.m (allocInitFromFile): Don't use deprecated method
bestRepresentationForDevice on OSX >= 10.6.

* nsmenu.m (fillWithWidgetValue): Don't use depercated method
sizeToFit on OSX >= 10.2.

* nsselect.m (ns_string_from_pasteboard): Don't use deprecated methods
cString and lossyCString on OSX >= 10.4

* nsterm.h (MAC_OS_X_VERSION_10_3, MAC_OS_X_VERSION_10_4)
(MAC_OS_X_VERSION_10_5): Define if not defined.
(EmacsView, EmacsTooltip): Implements NSWindowDelegate on OSX >= 10.6.
(EmacsMenu): Implements NSMenuDelegate on OSX >= 10.6.
(EmacsToolbar): Implements NSToolbarDelegate on OSX >= 10.6.

* nsterm.m (keyDown): Call to wantsToDelayTextChangeNotifications and
variable firstTime not needed on OSX >= 10.6.
(setPosition): setFloatValue:knobProportion: is deprecated on OSX
>= 10.5.  Use setKnobProportion, setDoubleValue.
src/ChangeLog
src/emacs.c
src/nsfns.m
src/nsimage.m
src/nsmenu.m
src/nsselect.m
src/nsterm.h
src/nsterm.m